﻿using System;
using GalaSoft.MvvmLight;

namespace DocBot.Objects
{
	public class PlaylistItem : ObservableObject
	{
		string _title;
		string _artist;
		string _url;

		int _playcount;
		int _duration;

		bool _restricted;
		DateTime _lastplayed;

		PlayListItemType _type;

		#region Properties
		// Type of content
		public PlayListItemType Type
		{
			get { return _type; }
			set { _type = value; }
		}

		// Playtime
		public int Duration
		{
			get { return _duration; }
			set { _duration = value; }
		}
		// playable in the current region
		public bool Restricted
		{
			get { return _restricted; }
			set { _restricted = value; }
		}

		// Url to the Song
		public string Url
		{
			get { return _url; }
			set { _url = value; }
		}
		// Counter for tracking how often the current Song has been played in this Session
		public int PlayCount
		{
			get { return _playcount; }
			set { _playcount = value; }
		}
		// Timestamp track was last played
		public DateTime LastPlayed
		{
			get { return _lastplayed; }
			set { _lastplayed = value; }
		}
		/// The artist name.
		public string ArtistName
		{
			get { return _artist; }
			set { _artist = value; }
		}

		/// The song title.
		public string SongTitle
		{
			get { return _title; }
			set { _title = value; }
		}
		#endregion
	}
}
